/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.cncqs.backend.store.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.cncqs.backend.store.entity.ComStore;
import com.cncqs.backend.store.dao.ComStoreDao;

/**
 * 企业下的门店Service
 * @author cxy
 * @version 2019-04-16
 */
@Service
@Transactional(readOnly=true)
public class ComStoreService extends CrudService<ComStoreDao, ComStore> {
	
	/**
	 * 获取单条数据
	 * @param comStore
	 * @return
	 */
	@Override
	public ComStore get(ComStore comStore) {
		return super.get(comStore);
	}
	
	/**
	 * 查询分页数据
	 * @param comStore 查询条件
	 * @param comStore.page 分页对象
	 * @return
	 */
	@Override
	public Page<ComStore> findPage(ComStore comStore) {
		return super.findPage(comStore);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param comStore
	 */
	@Override
	@Transactional(readOnly=false)
	public void save(ComStore comStore) {
		super.save(comStore);
	}
	
	/**
	 * 更新状态
	 * @param comStore
	 */
	@Override
	@Transactional(readOnly=false)
	public void updateStatus(ComStore comStore) {
		super.updateStatus(comStore);
	}
	
	/**
	 * 删除数据
	 * @param comStore
	 */
	@Override
	@Transactional(readOnly=false)
	public void delete(ComStore comStore) {
		super.delete(comStore);
	}
	
}